public class Logic {
    public static void main(String[] args) {
//        int i = 1;
//        for(i=1;i<=100;i++) {
//            if(i%7!=0) {
//                continue;
//            }
//            System.out.println(i+"、");
//        }
     for(int i=1;i<=9;i++) {
                for(int j=1;j<=9;j++) {

                    String result = String.format("%-1d*%d=%-2d", j, i, (i * j));
                    System.out.print(result + "  ");
                }
                System.out.println();
        }

    }

    public static void main7(String[] args) {
         int i = 1;
for(i=1;i<=5;i++) {
             int j = 1;
        loop:  for(j=1;j<=i;j++) {
                        if(i*j>10) {
                            break loop;
                        }
               String result = String.format("%-1d*%d=%-2d", j, i, (i * j));
               System.out.print(result + "  ");
            }
               System.out.print("\n");
       }

    }
    public static void main6(String[] args) {
     int sum = 0;
     int control = 1;
     while(true) {
         sum+=control;
         if(control==100) {
             break;
         }
         control++;
     }
     System.out.println("1-100的总和="+sum);
    }
    public static void main5(String[] args) {
       int i = 1;
       int sum = 0;
       for(i=1;i<=100;i++) {
           sum+=i;
       }
       System.out.println(sum);
    }
    public static void main4(String[] args) {
        int i=1;
        while(i<=10) {
            System.out.println(i);
            i++;
        }
    }
    public static void main3(String[] args) {

        int day = 1;
        switch(day) {
            case 1:
            System.out.println("星期一");
            break;
            case 2:
            System.out.println("星期二");
            break;
            case 3:
            System.out.println("星期三");
            break;
            case 4:
            System.out.println("星期四");
            break;
            case 5:
            System.out.println("星期五");
            break;
            case 6:
            System.out.println("星期六");
            break;
            case 7:
            System.out.println("星期日");
            break;
            default:
            System.out.println("输入有误");
            break;
        }

    }
    public static void main2(String[] args) {
       /* int a=10;
        if(a>12);
        {
            System.out.println("测试");
        }*/
        int x = 10;
        int y = 10;
        if (x == 10) {
            if (y == 10)
                System.out.println("aaa");
        }else
                System.out.println("bbb");

    }
    public static void main1(String[] agrs) {
        /*int score = 88;
        if(score>=80) {
            System.out.println("分数>="+score+"可以吃大鸡腿");
        }*/
        int score = 88;
        if(score>=90) {
            System.out.println("吃鸡腿");
        } else {
            System.out.println("吃大嘴巴子");
        }
        if(score >= 90){
        System.out.println("优秀");
                }else if(score >= 80 && score < 90){
        System.out.println("良好");
                }else if(score >= 70 && score < 80){
        System.out.println("中等");
                }else if(score >= 60 && score < 70){
        System.out.println("及格");
        System.out.println("不及格");
                }else{
        System.out.println("错误数据");
        }
      }

    }
